<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<title>主菜单</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="/theme/2/menu.css" />
<link rel="stylesheet" type="text/css" href="/theme/2/pheader.css" />
<script src="/inc/js/ccorrect_btn.js"></script>
</head>
<body class="panel" >
<div id="sub_tabs" class="sub_tabs">
  <ul id="sub_tabs_ul">
    <li><a id="link_1" href="#" title="展开/折叠菜单" class="active"><span>全部菜单</span></a><img id="expand_link" onclick="menu_expand();" src="/images/green_plus.gif" title="展开/折叠菜单" /></li>
  </ul>
  
</div>
<%
Dlyh dlyh = (Dlyh)request.getSession().getAttribute("dlyh"); %>
<input type="hidden" id="dlyhname" name="dlyhname" value=<%=dlyh.getZd().getTypename() %> />
<div id="body" >
<div style="width:195px; height:500px; overflow:auto">
<!-- OA树开始-->
<ul id="menu">
<%if(!(dlyh.getZd().getTypename().endsWith("市")&&dlyh.getZd().getParentid().equals(745))&&!dlyh.getZd().getTypename().equals("河北省")){ %>
<li class="L1"><a href="javascript:c('m01');" id="m01"><img src="images/hrms.png" /><span> 人员资料</span></a></li>

<ul id="m01d" style="display:none;" class="U1">
<li class="L22"><a href="ryzlGet.do" id="f1" target="rightFrame"><span>添加人员资料</span></a></li>
<li class="L22"><a href="ryzlList.do?cs=&shzt=" id="f3"  target="rightFrame"><span>人员资料列表</span></a></li>
<li class="L22"><a href="ryzlList.do?zbm=28&shzt=&czf==&cs=%e5%9c%a8%e8%81%8c" id="f3"  target="rightFrame"><span>在职人员列表</span></a></li>
<li class="L22"><a href="ryzlList.do?zbm=28&shzt=&czf==&cs=%e7%a6%bb%e8%81%8c" id="f3"  target="rightFrame"><span>离职人员列表</span></a></li>
<li class="L22"><a href="ryzlList.do?zbm=28&shzt=&czf==&cs=%e9%80%80%e4%bc%91" id="f3"  target="rightFrame"><span>退休人员列表</span></a></li>
<%
if((dlyh.getZd().getTypename().endsWith("县")||dlyh.getZd().getTypename().endsWith("区")||dlyh.getZd().getTypename().equals("武安市"))&&!dlyh.getZd().getTypename().equals("工业园区"))
{
%>
<li class="L22"><a href="ryzlList.do?zbm=&czf==&cs=&shzt=%e5%b7%b2%e9%80%9a%e8%bf%87" id="f3"  target="rightFrame"><span>已审核人员列表</span></a></li>
<li class="L22"><a href="ryzlList.do?zbm=&czf==&cs=&shzt=%e6%9c%aa%e5%ae%a1%e6%a0%b8" id="f3"  target="rightFrame"><span>待审核人员列表</span></a></li>
<%} %>
<li class="L22"><a href="rypx.do?state=findall&pxrq=&pxrq2=&zbm=&cs=&czf=" id="f3"  target="rightFrame"><span>培训人员列表</span></a></li>
<li class="L22"><a href="rykp.do?state=findall&kprq=&kprq2=&czf=&zbm=&cs=" id="f3"  target="rightFrame"><span>考评人员列表</span></a></li>
<li class="L22"><a href="ryjd.do?state=findall" id="f3"  target="rightFrame"><span>借调人员列表</span></a></li>
</ul>
<li class="L1"><a href="javascript:c('m10');" id="m10"><img src="images/mytable.gif" /> <span> 高级查询</span></a></li>
<ul id="m10d" style="display:none;" class="U1">
<li class="L22" id="L223"><a href="searchList.do?state=showlist" target="rightFrame" id="f130"><span>高级查询</span></a></li>
</ul>
<li class="L1"><a href="javascript:c('m20');" id="m20"><img src="images/project.png" /><span> 统计</span></a></li>
<ul id="m20d" style="display:none;" class="U1">

<li class="L22" id="L224"><a href="cjgzrs.html?keepThis=true&TB_iframe=true&height=300&width=500" id="f96" target="rightFrame"><span>工作时间人数</span></a></li>
<li class="L22" id="L224"><a href="cjgzrsgl.jsp?keepThis=true&TB_iframe=true&height=300&width=500" id="f96" target="rightFrame"><span>工作人数工龄</span></a></li>
<li class="L22" id="L224"><a href="xtrs.do" id="f96" target="rightFrame"><span>系统人数</span></a></li>
<li class="L22" id="L224"><a href="ryqk.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>人员情况</span></a></li>
<li class="L22" id="L224"><a href="zdyryqk.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>自定义年龄段人员情况</span></a></li>
<li class="L22" id="L224"><a href="gz.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>工资</span></a></li>
<li class="L22" id="L224"><a href="pjnl.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>平均年龄</span></a></li>
<li class="L22" id="L224"><a href="nnnl.do" id="f96" target="rightFrame"><span>男女年龄</span></a></li>
<li class="L22" id="L224"><a href="lrtj.do" id="f96" target="rightFrame"><span>录入人数</span></a></li>
<li class="L22" id="L224"><a href="pxtj.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>培训人数</span></a></li>
<li class="L22" id="L224"><a href="pxdjtj.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>培训登记</span></a></li>
<li class="L22" id="L224"><a href="kptj.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>考评人数</span></a></li>
<li class="L22" id="L224"><a href="kpdjtj.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>考评登记</span></a></li>
<li class="L22" id="L224"><a href="txtj.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>退休人数</span></a></li>
<li class="L22" id="L224"><a href="zyjsgwspdjqk.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>专业技术首聘人员情况</span></a></li>
<li class="L22" id="L224"><a href="zyjsrygwspqk.jsp?keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>专业技术岗位核准情况</span></a></li>

</ul>
<li class="L1"><a href="javascript:c('m30');" id="m30"><img src="images/sys.png" /><span> 系统管理</span></a></li>

<ul id="m30d" style="display:none;" class="U1">

<li class="L22" id="L225"><a href="dlyh.do?state=dlyhinfo" id="f76" target="rightFrame"><span>个人信息</span></a></li>
<li class="L22" id="L225"><a href="dlyh_updatepwd.jsp" id="f115" target="rightFrame"><span>修改密码</span></a></li>
<li class="L22" id="L225"><a href="zd.do?state=showlist" id="f115" target="rightFrame"><span>单位管理</span></a></li>
<%if((dlyh.getZd().getTypename().endsWith("县")||dlyh.getZd().getTypename().endsWith("区")||dlyh.getZd().getTypename().equals("武安市")||(dlyh.getZd().getTypename().endsWith("市")&&dlyh.getZd().getParentid().equals(745)))&&!dlyh.getZd().getTypename().equals("工业园区"))
{ %>

<li class="L22" id="L225"><a href="dlyh.do?state=findall" id="f15" target="rightFrame"><span>用户列表</span></a></li>
<%} %>

</ul>
<%} else{
String sname = request.getParameter("sname");
%>
<li class="L1"><a href="javascript:c('m2m');" id="m2m"><img src="images/project.png" /><span> 统计</span></a></li>
<ul id="m2md" style="display:none;" class="U1">

<li class="L22" id="L224"><a href="cjgzrs.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=300&width=500" id="f96" target="rightFrame"><span>工作时间人数</span></a></li>
<li class="L22" id="L224"><a href="cjgzrsgl.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=300&width=500" id="f96" target="rightFrame"><span>工作人数工龄</span></a></li>
<li class="L22" id="L224"><a href="xtrs.do?sname=<%=sname %>" id="f96" target="rightFrame"><span>系统人数</span></a></li>
<li class="L22" id="L224"><a href="ryqk.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>人员情况</span></a></li>
<li class="L22" id="L224"><a href="zdyryqk.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>自定义年龄段人员情况</span></a></li>
<li class="L22" id="L224"><a href="gz.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>工资</span></a></li>
<li class="L22" id="L224"><a href="pjnl.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>平均年龄</span></a></li>
<li class="L22" id="L224"><a href="nnnl.do?sname=<%=sname %>" id="f96" target="rightFrame"><span>男女年龄</span></a></li>
<li class="L22" id="L224"><a href="lrtj.do?sname=<%=sname %>" id="f96" target="rightFrame"><span>录入人数</span></a></li>
<li class="L22" id="L224"><a href="pxtj.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>培训人数</span></a></li>
<li class="L22" id="L224"><a href="pxdjtj.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>培训登记</span></a></li>
<li class="L22" id="L224"><a href="kptj.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>考评人数</span></a></li>
<li class="L22" id="L224"><a href="kpdjtj.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>考评登记</span></a></li>
<li class="L22" id="L224"><a href="txtj.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>退休人数</span></a></li>
<li class="L22" id="L224"><a href="zyjsgwspdjqk.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>专业技术首聘人员情况</span></a></li>
<li class="L22" id="L224"><a href="zyjsrygwspqk.jsp?sname=<%=sname %>&keepThis=true&TB_iframe=true&height=400&width=500" id="f96" target="rightFrame"><span>专业技术岗位核准情况</span></a></li>

</ul>
<%} %>
</ul>
</div>
<div id="bottom"><span id="bottom_left"></span><span id="bottom_center"></span><span id="bottom_right"></span></div>
<div id="menu_code_1" style="display:none;"></div>
<div id="menu_code_2" style="display:none;"></div>
<div id="menu_code_3" style="display:none;"></div>
<div id="menu_code_4" style="display:none;"></div>
<div id="menu_code_5" style="display:none;"></div>
<script src="/inc/js/utility.js"></script>
<script language="JavaScript">

var sub_menu="1";

var cur_id="",cur_expand="";
var flag=0,sflag=0;

//-------- 菜单点击事件 -------
function c(id)
{
  var targetid,targetelement;
  var strbuf;

  var el=$(id);
  if(!el)
     return;
  //-------- 如果点击了展开或收缩按钮---------
  targetid=el.id+"d";
  targetelement=$(targetid);
  var expandUL=$(cur_expand+"d");
  var expandLink=$(cur_expand);

  if (targetelement.style.display=="none")
  {
     if(expandUL && expandLink && el.id.substr(0,1)=="m")
     {
        expandLink.className="";
        expandUL.style.display='none';
     }
     if(el.id.substr(0,1)=="m")
        cur_expand=el.id;
     el.className="active";
     targetelement.style.display='';

     menu_flag=0;
     $("expand_link").src="/images/green_minus.gif";
  }
  else
  {
     el.className="";
     targetelement.style.display="none";

     menu_flag=1;
     $("expand_link").src="/images/green_plus.gif";
     var links=document.getElementsByTagName("A");
     for (i=0; i<links.length; i++)
     {
       el=links[i];
       if(el.parentNode.className.toUpperCase()=="L1" && el.className=="active" && el.id.substr(0,1)=="m")
       {
          menu_flag=0;
          $("expand_link").src="/images/green_minus.gif";
          break;
       }
     }
  }
}

//-------- 菜单全部展开/收缩 -------
var menu_flag=1;
function menu_expand()
{
  if(sub_menu == "2") return;
  if(menu_flag==1)
     $("expand_link").src="/images/green_minus.gif";
  else
     $("expand_link").src="/images/green_plus.gif";

  menu_flag=1-menu_flag;

  var links=document.getElementsByTagName("A");
  for (i=0; i<links.length; i++)
  {
    var el=links[i];
    if(el.parentNode.className.toUpperCase()=="L1" || el.parentNode.className.toUpperCase()=="L21")
    {
      var elUL=$(el.id+"d");
      if(menu_flag==0)
      {
        elUL.style.display='';
        el.className="active";
      }
      else
      {
        elUL.style.display="none";
        el.className="";
      }
    }
  }
}


function set_current(id)
{
   cur_link=$("f"+cur_id)
   if(cur_link)
      cur_link.className="";
   cur_link=$("f"+id);
   if(cur_link)
      cur_link.className="active";
   cur_id=id;
}
var dlyhname1 = document.getElementById("dlyhname").value;
if((dlyhname1.indexOf("市")!=-1&&dlyhname1!="武安市")||dlyhname1=="河北省"){
c('m2m');
}else {
   c('m01');
}
//menu_expand();
</script>
</div>
</body>

</html>
